#define DBC_CHECK_PRECONDITION

using System;
using System.Xml;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities.XmlBuilders {
    public class PointCollectionXmlBuilder : IXmlBuilder {
        
        private PointCollection mResultObject = null;

        public PointCollection ResultObject {
            get {
                return mResultObject;
            }
        }

        public PointCollectionXmlBuilder(XmlNode pointCollectionXmlNode) {
            Check.Require(pointCollectionXmlNode != null, "Xml source node cannot be null");
            Check.Require(pointCollectionXmlNode.Name.CompareTo(XmlTagNames.pointcollection.ToString()) == 0, 
                "A PointCollection Xml node must be supplied.");
            this.BuildObject(pointCollectionXmlNode);
        }

        private void BuildObject(XmlNode pointCollectionXmlNode) {
            mResultObject = new PointCollection();
        }
    }
}
